@import './iconfont.css';
html {
  font-family: -apple-system, system-ui, 'Helvetica Neue', Tahoma, 'PingFang SC',
    'Microsoft Yahei', Arial, 'Hiragino Sans GB', sans-serif;
}

#app,
body,
html {
  margin: 0 auto;
  width: 100%;
  // min-width: 1300px;
  height: 100%;
}

body {
  font-size: 14px;
  color: #000000;
}

* {
  box-sizing: border-box;
  font-style: normal;
}

.clear:after,
.clearfix:after {
  content: ' ';
  display: block;
  height: 0;
  clear: both;
}

.no-newline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pointer {
  cursor: pointer;
}
.icon {
  font-size: 14px;
}
.link {
  cursor: pointer;
  color: #14bdc8;
}

.f-l {
  float: left;
}

.f-r {
  float: right;
}

/** 基础通用 **/

.mr4 {
  margin-right: 4px;
}

.mb4 {
  margin-bottom: 4px;
}

.pt5 {
  padding-top: 5px;
}

.pr5 {
  padding-right: 5px;
}

.pb5 {
  padding-bottom: 5px;
}

.mt5 {
  margin-top: 5px;
}

.mr5 {
  margin-right: 5px;
}

.mb5 {
  margin-bottom: 5px;
}

.mr6 {
  margin-right: 6px;
}
.mr7 {
  margin-right: 10px;
}

.mb8 {
  margin-bottom: 8px;
}

.ml5 {
  margin-left: 5px;
}

.mt8 {
  margin-top: 8px;
}
.ml8 {
  margin-left: 8px;
}
.mr8 {
  margin-right: 8px;
}

.mt10 {
  margin-top: 10px;
}

.mr10 {
  margin-right: 10px;
}

.mb10 {
  margin-bottom: 10px;
}

.ml10 {
  margin-left: 10px;
}
.mt12 {
  margin-top: 12px;
}
.mr12 {
  margin-right: 12px;
}
.ml12 {
  margin-left: 12px;
}
.mb12 {
  margin-bottom: 12px;
}
.mr15 {
  margin-right: 15px;
}
.ml14 {
  margin-left: 11px;
}
.mr16 {
  margin-right: 16px;
}

.mt20 {
  margin-top: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mb20 {
  margin-bottom: 20px;
}

.ml20 {
  margin-left: 20px;
}

.size8 {
  font-size: 8px;
}

.size10 {
  font-size: 10px;
}
.size11 {
  font-size: 11px;
}
.size12 {
  font-size: 12px;
}

.size13 {
  font-size: 13px;
}

.size14 {
  font-size: 14px;
}
.size15 {
  font-size: 15px;
}
.size16 {
  font-size: 16px;
}

.size18 {
  font-size: 18px;
}
.size20 {
  font-size: 20px;
}

.cus-dialog-header {
  height: 100%;
  font-size: 16px;
  .cus-dialog-header-title {
    font-family: MiSans-Regular;
    font-weight: bold;
  }
}
/*页面 滚动条样式 宽6px*/

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  background: #eceef1;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0);
}

/*页面内部 滚动条样式 宽 4px*/

div::-webkit-scrollbar {
  width: 4px;
  height: 4px; // 纵向滚动条
}

div::-webkit-scrollbar-thumb {
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  background: #eceef1;
  &:hover {
    background: #6e7576;
  }
}

div::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0);
}

.flex {
  display: flex;
}

/* 垂直、水平居中 */

.h-v-middle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 水平居中 */

.h-middle {
  display: flex;
  justify-content: center;
}

/* 垂直居中 */

.v-middle {
  display: flex;
  align-items: center;
}

/* 两端对齐 */

.align {
  display: flex;
  justify-content: space-between;
}

/* 两端对齐，垂直居中 */

.v-align {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 垂直居中,右对齐 */

.v-r-middle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 垂直显示,左对齐 */

.col-middle {
  justify-content: center;
  display: flex;
  flex-direction: column;
}

/* 垂直显示,上下对齐 */

.col-s-b {
  justify-content: space-between;
  display: flex;
  flex-direction: column;
}

/* input word limit */

.count-red {
  .el-input__count {
    color: #f94b4b;
    .el-input__count-inner {
      color: #f94b4b;
    }
  }
}

/* 表格内的文字按钮样式 */

.operate-text-btn {
  cursor: pointer;
  font-size: 13px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #03111b;
  height: 17px;
  line-height: 17px;
  + .operate-text-btn {
    margin-top: 8px;
  }
  &.success {
    color: #00a870;
  }
  &.primary {
    color: #14bdc8;
  }
  &.danger {
    color: #f30707;
  }
  &.disabled {
    color: #9ca1a5;
    cursor: not-allowed;
  }
}

/**
 浏览器自带的聚焦时，加黑边，覆盖掉
*/

:focus {
  outline: 0;
}

.green {
  color: #14bdc8;
}

.orange {
  color: #ff5017;
}

.high-word {
  color: #075eed;
}

// 下拉菜单
.el-dropdown__popper {
  border-radius: 8px;
  // overflow: auto;
  --el-dropdown-menuItem-hover-fill: #f1f3f5;
  --el-dropdown-menuItem-hover-color: #1a1a1a;
  .el-dropdown-menu {
    padding: 8px;
    box-sizing: border-box;
    border-radius: 8px;
    .el-dropdown-menu__item {
      padding: 5px 8px;
      border-radius: 5px;
      margin-bottom: 4px;
      &.active {
        color: #075eed;
      }
      // &:not(.is-disabled):focus {
      //   --el-dropdown-menuItem-hover-fill: #f1f3f5;
      //   --el-dropdown-menuItem-hover-color: #1a1a1a;
      // }
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}

// .el-radio-group {
.el-radio {
  .el-radio__input {
    .el-radio__inner {
      width: 14px;
      height: 14px;
      background: white;
      &::after {
        width: 7px;
        height: 7px;
      }
      border-color: #9d9da2;
    }
    &.is-checked {
      .el-radio__inner {
        border-color: #075eed;
        &::after {
          background: #075eed;
        }
      }
    }
  }
  .el-radio__label {
    font-weight: 400;
  }
  .el-radio__input.is-checked + .el-radio__label {
    color: #03111b;
  }
}

// }
// 按钮中的svg图标
.el-button {
  .icon {
    margin-right: 8px;
  }
}

// 列表选项卡tab样式
// .wrap-tabs {
//   .el-tabs__header {
//     margin-bottom: 0;
//   }
//   .el-tabs__item {
//     height: 56px;
//     line-height: 56px;
//     font-size: 14px;
//     font-family: PingFang-SC-Medium, PingFang-SC;
//     font-weight: 400;
//     color: #03111b;
//     width: 150px;
//     text-align: center;
//     padding: 0;
//   }
//   .el-tabs__item.is-active {
//     font-size: 15px;
//     color: #03111b;
//     background: white;
//     border-radius: 3px 3px 0px 0px;
//   }
//   .el-tabs__active-bar {
//     height: 3px;
//     background: #14bdc8;
//     width: 80px !important;
//     text-align: center;
//     margin-left: 35px;
//   }
//   .el-tabs__nav-wrap::after {
//     height: 0px;
//   }
// }

// 面板页标题
.wrap-head {
  padding-bottom: 16px;
  .wrap-title {
    height: 24px;
    font-size: 17px;
    font-family: MiSans-Regular;
    font-weight: 500;
    color: #03111b;
    line-height: 24px;
  }
  .breadcrumb {
    color: #575e6c;
    cursor: pointer;
  }
}

.emoji-popper {
  padding-right: 0 !important;
}

.el-table {
  .first-column {
    padding-left: 12px;
  }
}

// 富文本字体样式
.editor-html {
  font-size: 13px;
  .ql-size-huge {
    font-size: 2.5em;
  }
  .ql-size-large {
    font-size: 1.5em;
  }
  .ql-size-small {
    font-size: 0.75em;
  }
  ol,
  ul,
  p {
    margin: 0;
  }
}

em {
  font-style: italic;
}

/* 文字按钮样式 */

.defined-text-btn {
  cursor: pointer;
  + .defined-text-btn {
    margin-left: 16px;
  }
  &.mini {
    font-size: 13px;
  }
  &.success {
    color: #00a870;
  }
  &.primary {
    color: #075eed;
  }
  &.danger {
    color: #f00000;
  }
  &.disabled {
    color: #9ca1a5;
    cursor: not-allowed;
  }
}
